<? echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
	<? foreach($news as $i){
	?>
	<url>
		<loc>http://orensmi.ru/<?php echo $i['rubric_url']."/novosti_".$i['news_id'].'.html'; ?></loc>
		<news:news>
			<news:publication>
				<news:name>ОренСМИ</news:name>
				<news:language>ru</news:language>
			</news:publication>
			<news:genres>PressRelease, Blog</news:genres>
			<news:publication_date><? echo date('Y-M-d', $i['news_time']); ?></news:publication_date>
			<news:geo_locations>Оренбург, Россия</news:geo_locations>
			<news:title><? echo preg_replace(array("/\'/", '/\"/', '/#/'), '', $i['news_name']); ?></news:title>
			<news:keywords>Оренбург, Оренбургская область, Россия</news:keywords>
		</news:news>
	</url>
	<? } ?>
</urlset>